package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="TOrderRefund")
public class TOrderRefund implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String RefundID;
	
	private TOrder TOrder;
	
	private Date HappenTime=new Date();
	
	private String Reason;
	
	private byte Status;
	
	private Date ReplyTime = new Date();
	
	private TUser TUser;
	
//	private TEmployee TEmployee;

	@Id
	@Column(name = "RefundID", length=18)
	public String getRefundID() {
		return RefundID;
	}

	public void setRefundID(String refundID) {
		RefundID = refundID;
	}

	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="OrderID")
	public TOrder getTOrder() {
		return TOrder;
	}

	public void setTOrder(TOrder tOrder) {
		TOrder = tOrder;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime")
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@Column(name = "Reason", length = 1024)
	public String getReason() {
		return Reason;
	}

	public void setReason(String reason) {
		Reason = reason;
	}

	@Column(name="Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ReplyTime")
	public Date getReplyTime() {
		return ReplyTime;
	}

	public void setReplyTime(Date replyTime) {
		ReplyTime = replyTime;
	}

	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}

//	@ManyToOne(fetch=FetchType.EAGER)
//	@JoinColumn(name="EmployeeID")
//	public TEmployee getTEmployee() {
//		return TEmployee;
//	}
//
//	public void setTEmployee(TEmployee tEmployee) {
//		TEmployee = tEmployee;
//	}
	
	
}
